import RootPage from "@/layout/index.vue";
import { shallowRef } from "vue";

const SysRouter = {
  path: "/sys",
  redirect: "/sys/user",
  name: "Sys",
  meta: {
    title: "系统管理",
  },
  component: shallowRef(RootPage),
  children: [
    {
      path: "/sys/user",
      name: "SysUser",
      component: () => import("@/views/sys/user/Index.vue"),
      meta: {
        title: "用户管理",
      },
    },
    {
      path: "/sys/role",
      name: "SysRole",
      component: () => import("@/views/sys/role/Index.vue"),
      meta: {
        title: "角色管理",
      },
    },
    {
      path: "/sys/menu",
      name: "SysMenu",
      component: () => import("@/views/sys/menu/Index.vue"),
      meta: {
        title: "菜单管理",
      },
    },
    {
      path: "/sys/pass",
      name: "SysPass",
      component: () => import("@/views/sys/Pass.vue"),
      meta: {
        title: "修改密码",
      },
    },
  ],
};

export default SysRouter;
